﻿using System;
using WebUI.BL.Products;

namespace WebUI.AdminSite.Product
{
    public partial class ProductSize : System.Web.UI.Page
    {
        public string datefrom = "";
        public string dateto = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //BindData();
                //datefrom = DateTime.Now.AddDays(-7).ToString("dd/MM/yyyy");
                //dateto = DateTime.Now.ToString("dd/MM/yyyy");    
            }
        }

        //private void BindData()
        //{
        //    WebUI.Helpers.WebFunction function = new Helpers.WebFunction();

        //    string sizename = txtName.Text.Trim();
        //    var datestarttemp = Request.Form["txtfromdate"];
        //    if (datestarttemp != "" && datestarttemp != null)
        //        datefrom = function.Convert_ddMMyyyy_MMddyyyy(datestarttemp).ToString();
        //    else
        //        datefrom = DateTime.Now.AddDays(-7).ToString("MM/dd/yyyy");

        //    var endstarttemp = Request.Form["txttodate"];
        //    if (endstarttemp != "" && endstarttemp != null)
        //        dateto = function.Convert_ddMMyyyy_MMddyyyy(endstarttemp).ToString();
        //    else
        //        dateto = DateTime.Now.ToString("MM/dd/yyyy");
        //    string status = drpStatus.SelectedValue;

        //    ProductSizeBL repository = new ProductSizeBL();
        //    grdProductSize.DataSource = repository.Get_Admin_ProductSize("", sizename, datefrom, dateto, drpStatus.SelectedValue);
        //    grdProductSize.DataBind();
        //}

        protected void btnSearchClick(object sender, EventArgs e)
        {
            //BindData();
        }
    }
}